package com.zb.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zb.entity.ZjWorkUser;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * <p>
 * 工单用户表 Mapper 接口
 * </p>
 *
 * @author WEN
 * @since 2023-09-20
 */
@Repository
public interface ZjWorkUserMapper extends BaseMapper<ZjWorkUser> {

    /**
     * 根据客户ID获取所有工单数量
     * @param userId 客户ID
     * @return
     */
    long getTotalOrderQtyByUserId(@Param("userId") Long userId);
}
